{% extends "base.html" %}
{% block title %}富光{% end %}

{% block right %}
			<div class="sep20"></div>
	        <div class="box">
	            <div class="cell">
	                <span class="fade">生活就是杯具(10分钟缓存)</span>
	            </div>
	            <div class="inner" style="line-height: 200%;">
	                <div id="tags">
		                    {% if tag_could %}
		                    {% for tag in tag_could %}
		                        <a href="{{ reverse_url('tag', tag['_id']) }}" class="item_node">{{ tag['_id'] }} ({{ int(tag['value']) }})</a>
		                    {% end %}
		                    {% else %}
		                    还没有任何标签.
		                    {% end %}
		                </div>
	            </div>
	        </div>
            <div class="sep20"></div>
            <div class="box">
                <div class="cell">
                    <span class="fade">分类的杯具</span>
                </div>
                <div class="inner" style="line-height: 200%;">
                    <div id="cates">
                        <a href="{{ reverse_url('fg') }}?category=塑料杯" class="item_node">塑料杯</a>
                        <a href="{{ reverse_url('fg') }}?category=保温杯" class="item_node">保温杯</a>
                        <a href="{{ reverse_url('fg') }}?category=玻璃杯" class="item_node">玻璃杯</a>
                        <a href="{{ reverse_url('fg') }}?category=紫砂杯" class="item_node">紫砂杯</a>
                        <a href="{{ reverse_url('fg') }}?category=泡茶师" class="item_node">泡茶师</a>
                        <a href="{{ reverse_url('fg') }}?category=银杯" class="item_node">银杯</a>
                        <a href="{{ reverse_url('fg') }}?category=FGA" class="item_node">FGA</a>
                        <a href="{{ reverse_url('fg') }}?category=礼品" class="item_node">礼品套装</a>
                    </div>
                </div>
            </div>
{% end %}

{% block js %}
	<script src="{{ static_url('js/jquery.cj-object-scaler.min.js') }}" type="text/javascript"></script>
        <script src="{{ static_url('js/jquery.lazyload.min.js') }}" type="text/javascript"></script>
        <script src="{{ static_url('js/jquery.tagcloud.min.js') }}" type="text/javascript"></script>
	<script type="text/javascript">
		$(function(){
			$('.p_img').each(function() {
                            $(this).cjObjectScaler({method: "fit"});
                        });
                        $(".p_img").lazyload({placeholder:"{{ static_url('img/grey.gif') }}", effect:"fadeIn"});
                        
                        $('#tags').tagClouds();
		});
	</script>
{% end %}

{% block content %}
    
            <div class="box"> 
                <div class="cell">
                    <span class="bigger"><a href="{{ reverse_url('main') }}">{{ handler.settings.site_name }}</a> <span class="chevron"> › </span> 富光</span>
                    <div class="sep10"></div>
		    <span class="header">
                        评论, 评价, 标签.  {% if category %} 属于 {{ category }}的产品, {% end %}共  {{ page.item_count }} 个富光产品.
                    </span>
                    <div class="sep10"></div>
                    <div id="replies">
                    {% for product in products %}
                    {{ modules.Product(product) }}
                    {% end %}
                    </div>
                    
                    <div class="inner" align="center">
                        {{ page.pager(handler.settings.pager) }}
                    </div>
                </div>
            </div>
            
            
    
{% end %}